package com.lht.admin.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;

/**
 * 文件上传记录表实体
 *
 * @author ZhengZhanWu
 * @date 2020-01-02 01:20:10
 */
@Data
@NoArgsConstructor
@TableName("lst_file_upload")
public class FileUploadEntity implements Serializable {
    private static final long serialVersionUID = 1L;

            /**
         * 主键id
         */
        @TableId
        private Long id;
                /**
         * 创建时间
         */
        private Date createAt;
                /**
         * 更新时间
         */
        private Date updateAt;
                /**
         * 用户id
         */
        private Long sourceUserId;
                /**
         * 业务类型，例如上传头像时传'avatar', 相册时传'album'，如此类推，跟前端协定好
         */
        private String bizeType;
                /**
         * 原文件名
         */
        private String originName;
                /**
         * 后台定义文件名
         */
        private String newName;
                /**
         * 保存路径,相对路径
         */
        private String path;
                /**
         * 文件类型
         */
        private String format;
                /**
         * 文件大小，单位KB
         */
        private Long size;
    
            public static final String ID = "id";
                public static final String CREATE_AT = "create_at";
                public static final String UPDATE_AT = "update_at";
                public static final String SOURCE_USER_ID = "source_user_id";
                public static final String BIZE_TYPE = "bize_type";
                public static final String ORIGIN_NAME = "origin_name";
                public static final String NEW_NAME = "new_name";
                public static final String PATH = "path";
                public static final String FORMAT = "format";
                public static final String SIZE = "size";
    }
